import javax.vecmath.Point3f;

/*
 * @Nick Bryant
 * 
 * This class is used for collision detection
 */
public class ObjectFace {
public Point3f bottoml, bottomr, topl, topr;

	public ObjectFace(float rx, float lx, float by, float ty, float fz, float bz)
	{
		bottoml = new Point3f(lx, by, fz);
		bottomr = new Point3f(rx, by, fz);
		topl = new Point3f(rx, ty, bz);
		topr = new Point3f(lx, ty, bz);	
	}
	
	public boolean equals(ObjectFace otherFace)
	{
		if(bottoml.equals(otherFace.bottoml) && bottomr.equals(otherFace.bottomr) 
			&& topl.equals(otherFace.topl)  && topl.equals(otherFace.topl) )
				return true;
						
		return false;
	}
}
